package classes.controller
{
	public class VONullObject
	{
		static private var _getInstance:VONullObject;
		public function VONullObject(singletonEnforcer:SingletonEnforcer){}
		
		public static function getLoadInstance():VONullObject
		{
			if(VONullObject._getInstance == null){
				VONullObject._getInstance = new VONullObject(new SingletonEnforcer());	
			}
			return VONullObject._getInstance;
		}
		
		public function nullText($inputText:String):String
		{
			var changeStr:String;
			
			if(($inputText == null) || ($inputText == "undefined")){
				changeStr = "";
			}else{
				changeStr = $inputText;
			}
			
			return changeStr; 
		}
		
		public function nullNickText($inputText:String):String
		{
			var changeStr:String;
			
			if(($inputText == null) || ($inputText == "undefined")){
				changeStr = "OX";
			}else{
				changeStr = $inputText;
			}
			
			return changeStr; 
		}
	}
}

class SingletonEnforcer{}